﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.rms.lend_manage.index" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<script>
function open_file0(file_id)
{
 URL="read_file0.aspx?file_id="+file_id;
 myleft=(screen.availWidth-500)/2;
 mytop=150
 mywidth=550;
 myheight=300;
 window.open(URL,"read_file","height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}

function open_file(file_id)
{
 URL="read_file.aspx?file_id="+file_id;
 myleft=(screen.availWidth-500)/2;
 mytop=150
 mywidth=550;
 myheight=300;
 window.open(URL,"read_file","height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}


</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/rms.gif" align="absMiddle"><span class="big3">
							待批准借阅</span><br>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptWait" runat="server">
			<HeaderTemplate>
			 <table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
				<tr class="TableHeader">
				<td nowrap align="center">文件号</td>
				<td nowrap align="center">借阅人</td>
				<td nowrap align="center">申请时间</td>
				<td nowrap align="center">审批时间</td>
				<td nowrap align="center">归还时间</td>
				<td nowrap align="center">操作</td>
				</tr>				
			</HeaderTemplate>
			<ItemTemplate>
			 <tr class="TableLine2">
				<td align="center">
				<a href="javascript:open_file0('<%#Eval("FileId")%>');"><%#Eval("FileCode")%></a>
				</td>
				<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="CURSOR:hand"><%#Eval("UserName")%></u></td>
				<td nowrap align="center"><%#Eval("LendTime")%></td>
				<td nowrap align="center"><%#Eval("AllowTime")%></td>
				<td nowrap align="center"><%#Eval("ReturnTime")%></td>
				<td nowrap align="center">
				<a href="allow.aspx?lend_id=<%#Eval("LendId")%>&allow=1"> 批准</a>
				<a href="allow.aspx?lend_id=<%#Eval("LendId")%>&allow=2"> 不准</a>
				</td>
			</tr>
			</ItemTemplate>
			<FooterTemplate>
			</table>
			<br>
			</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litWait" runat="server"></asp:Literal>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/rms.gif" align="absMiddle"><span class="big3">
							已批准借阅</span><br>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptOk" runat="server">
				<HeaderTemplate>
			 <table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
				<tr class="TableHeader">
				<td nowrap align="center">文件号</td>
				<td nowrap align="center">借阅人</td>
				<td nowrap align="center">申请时间</td>
				<td nowrap align="center">审批时间</td>
				<td nowrap align="center">归还时间</td>
				<td nowrap align="center">操作</td>
				</tr>				
			</HeaderTemplate>
			<ItemTemplate>
			 <tr class="TableLine2">
				<td align="center">
				<a href="javascript:open_file('<%#Eval("FileId")%>');"><%#Eval("FileCode")%></a>
				</td>
				<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="CURSOR:hand"><%#Eval("UserName")%></u></td>
				<td nowrap align="center"><%#Eval("LendTime")%></td>
				<td nowrap align="center"><%#Eval("AllowTime")%></td>
				<td nowrap align="center"><%#Eval("ReturnTime")%></td>
				<td nowrap align="center">
				<a href="allow.aspx?lend_id=<%#Eval("LendId")%>&allow=0"> 撤销</a>
				<a href="delete.aspx?lend_id=<%#Eval("LendId")%>"> 删除</a>
				</td>
			</tr>
			</ItemTemplate>
			<FooterTemplate>
			</table>
			<br>
			</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litOk" runat="server"></asp:Literal>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/rms.gif" align="absMiddle"><span class="big3">
							未批准借阅</span><br>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptNo" runat="server">
				<HeaderTemplate>
			 <table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
				<tr class="TableHeader">
				<td nowrap align="center">文件号</td>
				<td nowrap align="center">借阅人</td>
				<td nowrap align="center">申请时间</td>
				<td nowrap align="center">审批时间</td>
				<td nowrap align="center">归还时间</td>
				<td nowrap align="center">操作</td>
				</tr>				
			</HeaderTemplate>
			<ItemTemplate>
			 <tr class="TableLine2">
				<td align="center">
				<a href="javascript:open_file0('<%#Eval("FileId")%>');"><%#Eval("FileCode")%></a>
				</td>
				<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="CURSOR:hand"><%#Eval("UserName")%></u></td>
				<td nowrap align="center"><%#Eval("LendTime")%></td>
				<td nowrap align="center"><%#Eval("AllowTime")%></td>
				<td nowrap align="center"><%#Eval("ReturnTime")%></td>
				<td nowrap align="center">
				<a href="allow.aspx?lend_id=<%#Eval("LendId")%>&allow=0"> 撤销</a>
				<a href="delete.aspx?lend_id=<%#Eval("LendId")%>"> 删除</a>
				</td>
			</tr>
			</ItemTemplate>
			<FooterTemplate>
			</table>
			<br>
			</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litNo" runat="server"></asp:Literal>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/rms.gif" align="absMiddle"><span class="big3">
							已归还借阅</span><br>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptReturn" runat="server">
				<HeaderTemplate>
			 <table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
				<tr class="TableHeader">
				<td nowrap align="center">文件号</td>
				<td nowrap align="center">借阅人</td>
				<td nowrap align="center">申请时间</td>
				<td nowrap align="center">审批时间</td>
				<td nowrap align="center">归还时间</td>
				<td nowrap align="center">操作</td>
				</tr>				
			</HeaderTemplate>
			<ItemTemplate>
			 <tr class="TableLine2">
				<td align="center">
				<a href="javascript:open_file0('<%#Eval("FileId")%>');"><%#Eval("FileCode")%></a>
				</td>
				<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="CURSOR:hand"><%#Eval("UserName")%></u></td>
				<td nowrap align="center"><%#Eval("LendTime")%></td>
				<td nowrap align="center"><%#Eval("AllowTime")%></td>
				<td nowrap align="center"><%#Eval("ReturnTime")%></td>
				<td nowrap align="center">
					<a href="delete.aspx?lend_id=<%#Eval("LendId")%>"> 删除</a>
				</td>
			</tr>
			</ItemTemplate>
			<FooterTemplate>
			</table>
			<br>
			</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litReturn" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
